<!--{template common/header}-->
<!--{eval $list = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->

<!--{eval}-->
$cache_menus=$_G['cache']['portalcategory'];
 if(array_key_exists("ups",$cat)){
	$cptitle=array_values($cat['ups'])[0]['catname'];
	$cptitleb=array_values($cat['ups'])[0]['fullfoldername'];
    if($cat['level']>1){
        $children =$cat['ups'][$cat['topid']]['children'];
        $arrmenu=array();
        foreach($children as $v){
            $arrmenu[]=$cache_menus[$v];
        }
    }else{
        $arrmenu=$cat['others'];
    }
 }else{
	 $cptitle=$cat['catname'];
	  $cptitleb=$cat['fullfoldername'];	
	  $arrmenu=$cat['subs'];
      
 }

foreach($arrmenu as $k=>$v){
if($v['children']){
$sanji=array();
foreach($v['children'] as $vv){
    $sanji[]=$cache_menus[$vv];
    
}
$arrmenu[$k]['sanji']=$sanji;
}
}
<!--{/eval}-->
<div class="wpui_nbanner banner_news">
    <div class="wpui_wrapper wpui_nbannerprr">
        <h1><i></i>
            <a href="./" title="{lang homepage}">$_G[setting][bbname]</a><em>/</em><a href="$_G[setting][navs][1][filename]">{lang nav_index}</a><em>/</em><!--{loop $cat['ups'] $value}--><a href="{echo getportalcategoryurl($value[catid])}">$value['catname']</a><em>/</em><!--{/loop}--><span>$cat['catname']</span>
        </h1>
        <h2>$cat['catname']</h2>
        <!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
        <span class="wpui_fabiaobtn"><a href="portal.php?mod=portalcp&ac=article&catid=$cat[catid]">+ {$lang['wpui_fabu']}</a></span>
        <!--{/if}-->
    </div>
</div>
<div class="wpui_content bgf9">
    <div class="wpui_wrapper">
        <ul class="wpui_nmenu">
            <li><a <!--{if $cat['topid']==$catid}-->class="on"<!--{/if}--> href="{$cat['ups'][$cat['topid']]['caturl']}">{$lang['wpui_quanbu']}</a></li>
            <!--{loop $arrmenu $key $val}-->
            <li>
                <a <!--{if $val['catid']==$catid}-->class="on"<!--{/if}--> href="{$val[caturl]}">{$val['catname']}</a>
                <!--{if $val['sanji']}-->
                <div class="wpui_nmenubox">
                    <!--{loop $val['sanji'] $val2}-->
                    <a <!--{if $val2['catid']==$catid}-->class="on"<!--{/if}--> href="{$val2[caturl]}">{$val2['catname']}</a>
                    <!--{/loop}-->
                </div>
                <!--{/if}-->
            </li>
            <!--{/loop}-->
        </ul>
    </div>
</div>
<div class="wpui_content ovh">
    <div class="wpui_wrapper">
        <div class="wpui_news mgb30">
            <div class="wpui_news_fl">
                <div class="wpui_news_list">
                    <!--{loop $list['list'] $key $val}-->
                    <!--{eval $url = fetch_article_url($val);}-->
                    <!--{if $val[pic]}-->
                    <dl class="wow fadeInUp">
                    <a href="{$url}">
                        <dt><img src="{$val[pic]}"></dt>
                        <dd>
                            <h2><span>{$val['title']}</span></h2>
                            <p>{$val['summary']}</p>
                            <h3>{$val['dateline']}</h3>
                        </dd>                        
                    </a>
                    </dl>
                    <!--{else}-->
                    <dl class="wow fadeInUp no">
                    <a href="{$url}">
                        <dd>
                            <h2><span>{$val['title']}</span></h2>
                            <p>{$val['summary']}</p>
                            <h3>{$val['dateline']}</h3>
                        </dd>                        
                    </a>
                    </dl>
                    <!--{/if}-->
                    <!--{/loop}-->
                </div>
                <div class="page">{$list['multi']}</div>
            </div>
            <div class="wpui_news_fr">
                <div class="wpui_news_frbox">                
                    <!--[diy=wpui_hotnews]--><div id="wpui_hotnews" class="area"><div id="framepgbVMp" class="frame move-span cl frame-1"><div id="framepgbVMp_left" class="column frame-1-c"><div id="framepgbVMp_left_temp" class="move-span temp"></div><!--{block/505}--><!--{block/503}--></div></div></div><!--[/diy]-->
                </div>
                <div class="wpui_news_frbox">
                    <!--[diy=wpui_newnews]--><div id="wpui_newnews" class="area"><div id="framet24l1q" class="frame move-span cl frame-1"><div id="framet24l1q_left" class="column frame-1-c"><div id="framet24l1q_left_temp" class="move-span temp"></div><!--{block/506}--><!--{block/504}--></div></div></div><!--[/diy]-->
                </div>                
            </div>
        </div>
    </div>
</div>
    		  	  		  	  		     	  		      		   		     		       	  	 	     		   		     		       	  				    		   		     		       	  	 	     		   		     		       	  				    		   		     		       	  		 	    		   		     		       	  	 		    		 	      	  		  	  		     	
<!--{template common/footer}-->